package org.dong.samples.service;

import java.util.List;

import org.dong.samples.dao.RoleHibernateDAO;
import org.dong.samples.model.UserRole;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ManageRoleService {
	
	@Autowired
	private RoleHibernateDAO roleHibernateDAO;
	
	public List<UserRole> findAllUserRole(){
		return roleHibernateDAO.findAllUserRole();
	}
	
	public UserRole getRoleByUser(String userId) {
		return roleHibernateDAO.getRoleByUser(userId);
	}
}
